Progress bar in command line

Copying files using rsync with progress bar

apt-get install rsync;
rsync -ah --progress /path/to/source /path/to/destination

Run sql script to restore db with progress bar

apt-get install pv;
pv script.sql | mysql -h hostname -u username -p password database

Leave a Reply